package org.corey.wyp.vo;

import javax.persistence.CascadeType;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;

@Entity
@DiscriminatorValue(value = "month")
public class MonthSettingTemplate extends SettingTemplate {

	@OneToOne(fetch = FetchType.EAGER,cascade=CascadeType.ALL)
	@JoinColumn(name = "MONTH_SETTING_ID")
	private MonthSetting monthSetting;

	public MonthSetting getMonthSetting() {
		return monthSetting;
	}

	public void setMonthSetting(MonthSetting monthSetting) {
		this.monthSetting = monthSetting;
	}

}
